package com.bryandismas.pcsx;

public class PcsxCore 
{
	public AndroidBindings bindings;
	PcsxAndroid activity;
	
	public PcsxCore(PcsxAndroid activity)
	{
		this.activity = activity;
		bindings = new AndroidBindings(activity);
	}
	
	public void load()
	{
		System.loadLibrary("pcsxcore");
        
        try
        {
        	String dataDir = activity.getPackageManager().getApplicationInfo(activity.getPackageName(), 0).dataDir;
        	dataDir += "/lib/";
    		entryPoint(dataDir);
        }
        catch (Exception e)
        {
        }
	}
	
	// contains mostly native functions to load core stuff.
	public native void entryPoint(String dataPath);
}
